//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-01B
TN_Widget.CreateTable([['James Arthur','City Parks Foundation SummerStage','New York, NY','Friday','5/17/2024','6:00 PM','6151416','James-Arthur-5-17-2024'],['Kes','City Parks Foundation SummerStage','New York, NY','Saturday','6/8/2024','6:00 PM','6270416','Kes-6-8-2024'],['Masego','City Parks Foundation SummerStage','New York, NY','Wednesday','6/19/2024','6:00 PM','6329366','Masego-6-19-2024'],['T-Pain','City Parks Foundation SummerStage','New York, NY','Sunday','6/23/2024','6:30 PM','6276860','T-Pain-6-23-2024'],['Caifanes & Cafe Tacvba','City Parks Foundation SummerStage','New York, NY','Wednesday','6/26/2024','7:00 PM','6148082','Caifanes---Cafe-Tacvba-6-26-2024'],['Ethel Cain','City Parks Foundation SummerStage','New York, NY','Thursday','6/27/2024','6:00 PM','6142635','Ethel-Cain-6-27-2024'],['Above & Beyond & Spencer Brown','City Parks Foundation SummerStage','New York, NY','Friday','6/28/2024','5:30 PM','6377901','Above---Beyond---Spencer-Brown-6-28-2024'],['Pride Disco: DJ Trixie Mattel, Amanda Lepore & Jess King','City Parks Foundation SummerStage','New York, NY','Saturday','6/29/2024','5:30 PM','6380672','Pride-Disco--DJ-Trixie-Mattel--Amanda-Lepore---Jess-King-6-29-2024'],['Dreamland: Pride In Central Park','City Parks Foundation SummerStage','New York, NY','Sunday','6/30/2024','3:00 PM','6268636','Dreamland--Pride-In-Central-Park-6-30-2024'],['Counting Crows','City Parks Foundation SummerStage','New York, NY','Thursday','7/11/2024','6:00 PM','6354067','Counting-Crows-7-11-2024'],['The Saw Doctors','City Parks Foundation SummerStage','New York, NY','Wednesday','7/17/2024','6:00 PM','6030085','The-Saw-Doctors-7-17-2024'],['Piano People In The Park: Scorpion Kings','City Parks Foundation SummerStage','New York, NY','Saturday','7/27/2024','3:00 PM','6392791','Piano-People-In-The-Park--Scorpion-Kings-7-27-2024'],['Elevation Worship','City Parks Foundation SummerStage','New York, NY','Wednesday','7/31/2024','7:30 PM','6314169','Elevation-Worship-7-31-2024'],['Robert Glasper','City Parks Foundation SummerStage','New York, NY','Thursday','8/1/2024','6:00 PM','6372823','Robert-Glasper-8-1-2024'],['David Cross','City Parks Foundation SummerStage','New York, NY','Thursday','8/8/2024','7:00 PM','6391634','David-Cross-8-8-2024'],['The Gaslight Anthem','City Parks Foundation SummerStage','New York, NY','Wednesday','8/21/2024','6:00 PM','6327814','The-Gaslight-Anthem-8-21-2024'],['The Roots','City Parks Foundation SummerStage','New York, NY','Friday','8/23/2024','6:00 PM','6382348','The-Roots-8-23-2024'],['Squeeze & Boy George','City Parks Foundation SummerStage','New York, NY','Tuesday','9/17/2024','6:30 PM','6414175','Squeeze---Boy-George-9-17-2024'],['Brittany Howard & Michael Kiwanuka','City Parks Foundation SummerStage','New York, NY','Thursday','10/3/2024','6:00 PM','6400736','Brittany-Howard---Michael-Kiwanuka-10-3-2024']],'Central Park Summerstage','http://www.ticketnetwork.com/ticket/Central-Park-Summerstage-events.aspx');